import { createRouter, createWebHistory } from 'vue-router'
import HomePage from '@/pages/HomePage.vue'

// 定义路由配置
const routes = [
  {
    path: '/',
    name: 'Home',
    component: HomePage
  },
  {
    path: '/doubao',
    name: 'Doubao',
    component: () => import('../pages/DoubaoPage.vue')
  },
  {
    path: '/kimi',
    name: 'Kimi',
    component: () => import('../pages/KimiPage.vue')
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../components/HelloWorld.vue')
  }
]

// 创建路由实例
const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
